<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="../vue.js"></script>

<body>
  <div id="app">
    <my-component></my-component>
  </div>
  <script>
    Vue.component('my-component', {
      data() {
        return {
          count: 0
        }
      },
      template: '<button @click="count++">被单击{{count}}次了！！</button>',
    })
    const vm = new Vue({
      el: "#app",
      data: {},
      methods: {},
    })
  </script>
</body>

</html>